/*
 * @Author: li 2696915640@qq.com
 * @Date: 2023-06-30 16:48:55
 * @LastEditors: li 2696915640@qq.com
 * @LastEditTime: 2023-07-18 09:59:59
 * @FilePath: \newpig\src\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import http from '@/components/utils/requect'


//保存和优化
export function saveAndOptimize(data) {
  return http({
    url: '/api/college/saveAndOptimize',
    method: 'post',
    data
  })
}

//获取所有学生的信息
export function allStudentInfo(params) {
  return http({
    url: '/api/college/allStudentInfo',
    method: 'get',
    params:params
  })
}

//获取指定学生的信息
export function studentInfo(params) {
  return http({
    url: '/api/college/studentInfo',
    method: 'get',
    params:params
  })
}
